using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsSyncResponse : GeneratedMessageLite<SnsSyncResponse, SnsSyncResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsSyncResponse, SnsSyncResponse.Builder>
		{
			private bool resultIsReadOnly;
			private SnsSyncResponse result;
			protected override SnsSyncResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsSyncResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsSyncResponse DefaultInstanceForType
			{
				get
				{
					return SnsSyncResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public CmdList CmdList
			{
				get
				{
					return this.result.CmdList;
				}
				set
				{
					this.SetCmdList(value);
				}
			}
			public uint ContinueFlag
			{
				get
				{
					return this.result.ContinueFlag;
				}
				set
				{
					this.SetContinueFlag(value);
				}
			}
			public SKBuiltinBuffer_t KeyBuf
			{
				get
				{
					return this.result.KeyBuf;
				}
				set
				{
					this.SetKeyBuf(value);
				}
			}
			public Builder()
			{
				this.result = SnsSyncResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsSyncResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsSyncResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsSyncResponse other = this.result;
					this.result = new SnsSyncResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsSyncResponse.Builder Clear()
			{
				this.result = SnsSyncResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsSyncResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsSyncResponse.Builder(this.result);
				}
				return new SnsSyncResponse.Builder().MergeFrom(this.result);
			}
			public override SnsSyncResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsSyncResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsSyncResponse)
				{
					return this.MergeFrom((SnsSyncResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsSyncResponse.Builder MergeFrom(SnsSyncResponse other)
			{
				return this;
			}
			public override SnsSyncResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsSyncResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsSyncResponse._snsSyncResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsSyncResponse._snsSyncResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							CmdList.Builder builder2 = CmdList.CreateBuilder();
							if (this.result.hasCmdList)
							{
								builder2.MergeFrom(this.CmdList);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.CmdList = builder2.BuildPartial();
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasContinueFlag = input.ReadUInt32(ref this.result.continueFlag_);
							continue;
						}
						if (num3 == 34u)
						{
							SKBuiltinBuffer_t.Builder builder3 = SKBuiltinBuffer_t.CreateBuilder();
							if (this.result.hasKeyBuf)
							{
								builder3.MergeFrom(this.KeyBuf);
							}
							input.ReadMessage(builder3, extensionRegistry);
							this.KeyBuf = builder3.BuildPartial();
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsSyncResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public SnsSyncResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public SnsSyncResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public SnsSyncResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public SnsSyncResponse.Builder SetCmdList(CmdList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasCmdList = true;
				this.result.cmdList_ = value;
				return this;
			}
			public SnsSyncResponse.Builder SetCmdList(CmdList.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasCmdList = true;
				this.result.cmdList_ = builderForValue.Build();
				return this;
			}
			public SnsSyncResponse.Builder MergeCmdList(CmdList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasCmdList && this.result.cmdList_ != CmdList.DefaultInstance)
				{
					this.result.cmdList_ = CmdList.CreateBuilder(this.result.cmdList_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.cmdList_ = value;
				}
				this.result.hasCmdList = true;
				return this;
			}
			public SnsSyncResponse.Builder ClearCmdList()
			{
				this.PrepareBuilder();
				this.result.hasCmdList = false;
				this.result.cmdList_ = null;
				return this;
			}
			public SnsSyncResponse.Builder SetContinueFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasContinueFlag = true;
				this.result.continueFlag_ = value;
				return this;
			}
			public SnsSyncResponse.Builder ClearContinueFlag()
			{
				this.PrepareBuilder();
				this.result.hasContinueFlag = false;
				this.result.continueFlag_ = 0u;
				return this;
			}
			public SnsSyncResponse.Builder SetKeyBuf(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasKeyBuf = true;
				this.result.keyBuf_ = value;
				return this;
			}
			public SnsSyncResponse.Builder SetKeyBuf(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasKeyBuf = true;
				this.result.keyBuf_ = builderForValue.Build();
				return this;
			}
			public SnsSyncResponse.Builder MergeKeyBuf(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasKeyBuf && this.result.keyBuf_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.keyBuf_ = SKBuiltinBuffer_t.CreateBuilder(this.result.keyBuf_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.keyBuf_ = value;
				}
				this.result.hasKeyBuf = true;
				return this;
			}
			public SnsSyncResponse.Builder ClearKeyBuf()
			{
				this.PrepareBuilder();
				this.result.hasKeyBuf = false;
				this.result.keyBuf_ = null;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int CmdListFieldNumber = 2;
		public const int ContinueFlagFieldNumber = 3;
		public const int KeyBufFieldNumber = 4;
		private static readonly SnsSyncResponse defaultInstance;
		private static readonly string[] _snsSyncResponseFieldNames;
		private static readonly uint[] _snsSyncResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasCmdList;
		private CmdList cmdList_;
		private bool hasContinueFlag;
		private uint continueFlag_;
		private bool hasKeyBuf;
		private SKBuiltinBuffer_t keyBuf_;
		private int memoizedSerializedSize = -1;
		public static SnsSyncResponse DefaultInstance
		{
			get
			{
				return SnsSyncResponse.defaultInstance;
			}
		}
		public override SnsSyncResponse DefaultInstanceForType
		{
			get
			{
				return SnsSyncResponse.DefaultInstance;
			}
		}
		protected override SnsSyncResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public CmdList CmdList
		{
			get
			{
				return this.cmdList_ ?? CmdList.DefaultInstance;
			}
		}
		public uint ContinueFlag
		{
			get
			{
				return this.continueFlag_;
			}
		}
		public SKBuiltinBuffer_t KeyBuf
		{
			get
			{
				return this.keyBuf_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasCmdList && this.hasContinueFlag && this.hasKeyBuf && this.BaseResponse.IsInitialized && this.CmdList.IsInitialized && this.KeyBuf.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasCmdList)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.CmdList);
				}
				if (this.hasContinueFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.ContinueFlag);
				}
				if (this.hasKeyBuf)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.KeyBuf);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsSyncResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsSyncResponseFieldNames = SnsSyncResponse._snsSyncResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, snsSyncResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasCmdList)
			{
				output.WriteMessage(2, snsSyncResponseFieldNames[1], this.CmdList);
			}
			if (this.hasContinueFlag)
			{
				output.WriteUInt32(3, snsSyncResponseFieldNames[2], this.ContinueFlag);
			}
			if (this.hasKeyBuf)
			{
				output.WriteMessage(4, snsSyncResponseFieldNames[3], this.KeyBuf);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasCmdList)
			{
				num ^= this.cmdList_.GetHashCode();
			}
			if (this.hasContinueFlag)
			{
				num ^= this.continueFlag_.GetHashCode();
			}
			if (this.hasKeyBuf)
			{
				num ^= this.keyBuf_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			SnsSyncResponse snsSyncResponse = object_0 as SnsSyncResponse;
			return snsSyncResponse != null && (this.hasBaseResponse == snsSyncResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(snsSyncResponse.baseResponse_))) && (this.hasCmdList == snsSyncResponse.hasCmdList && (!this.hasCmdList || this.cmdList_.Equals(snsSyncResponse.cmdList_))) && (this.hasContinueFlag == snsSyncResponse.hasContinueFlag && (!this.hasContinueFlag || this.continueFlag_.Equals(snsSyncResponse.continueFlag_))) && (this.hasKeyBuf == snsSyncResponse.hasKeyBuf && (!this.hasKeyBuf || this.keyBuf_.Equals(snsSyncResponse.keyBuf_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsSyncResponse, SnsSyncResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<SnsSyncResponse, SnsSyncResponse.Builder>.PrintField("CmdList", this.hasCmdList, this.cmdList_, writer);
			GeneratedMessageLite<SnsSyncResponse, SnsSyncResponse.Builder>.PrintField("ContinueFlag", this.hasContinueFlag, this.continueFlag_, writer);
			GeneratedMessageLite<SnsSyncResponse, SnsSyncResponse.Builder>.PrintField("KeyBuf", this.hasKeyBuf, this.keyBuf_, writer);
		}
		public static SnsSyncResponse ParseFrom(byte[] data)
		{
			return SnsSyncResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsSyncResponse MakeReadOnly()
		{
			return this;
		}
		public static SnsSyncResponse.Builder CreateBuilder()
		{
			return new SnsSyncResponse.Builder();
		}
		public override SnsSyncResponse.Builder ToBuilder()
		{
			return SnsSyncResponse.CreateBuilder(this);
		}
		public override SnsSyncResponse.Builder CreateBuilderForType()
		{
			return new SnsSyncResponse.Builder();
		}
		public static SnsSyncResponse.Builder CreateBuilder(SnsSyncResponse prototype)
		{
			return new SnsSyncResponse.Builder(prototype);
		}
		static SnsSyncResponse()
		{
			SnsSyncResponse.defaultInstance = new SnsSyncResponse().MakeReadOnly();
			SnsSyncResponse._snsSyncResponseFieldNames = new string[]
			{
				"BaseResponse",
				"CmdList",
				"ContinueFlag",
				"KeyBuf"
			};
			SnsSyncResponse._snsSyncResponseFieldTags = new uint[]
			{
				10u,
				18u,
				24u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.SnsSyncResponse.Descriptor, null);
		}
	}
}
